        <div id="templatemo_upcomming_event" class="container_wapper">
            <div class="container">
                <div class="row">
                    <div class="col-xs-12 section_header_white">
                        <h1>SMS On Schedule</h1>
                    </div>
                    <div class="col-md-6 col-md-offset-3 col-md-offset-3">
                        <p>
                            Silahkan hubungi kami untuk info lebih lanjut mengenai layanan ini.</b>
                        </p>
                    </div>  
                    <div class="clearfix"></div>                    
                </div>
            </div>
        </div>
        
        <!-- templatemo 404 reactive -->
        <!-- 
        Reactive Template 
        http://www.templatemo.com/preview/templatemo_404_reactive 
        -->

        <script>
            $(function() {
                $("#refresh-captcha").click(function(event) {
                    event.preventDefault();
                    $.get("<?php echo base_url() ?>index.php/profile/reload_captcha", function(data) {
                        $("#captcha-container").html(data);
                    });
                });
            });

            $(function() {

                $("#kirim_pendaftaran").click(function(event) {
                    var v_name = document.getElementById('name').value;
                    var v_phone = document.getElementById('phone').value;
                    var v_email = document.getElementById('email').value;
                    var v_captcha = document.getElementById('captcha').value;
                    var pattern = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;

                    if (v_name === "") {
                        alert("Nama tidak boleh kosong");
                    } else if (v_phone === "") {
                        alert("No. Handphone tidak boleh kosong");
                    } else if (v_captcha === "") {
                        alert("Captcha tidak boleh kosong");
                    }
                    else
                    {
                        if (pattern.test(v_email) || v_email === "")
                        {
                            $.ajax({
                                url: '<?php echo base_url(); ?>index.php/profile/daftar',
                                type: "POST",
                                data: {
                                    name: v_name,
                                    phone: v_phone,
                                    email: v_email,
                                    captcha: v_captcha,
                                    '<?php echo $this->security->get_csrf_token_name(); ?>': '<?php echo $this->security->get_csrf_hash(); ?>'
                                },
                                success: function(result)
                                {
                                    var obres = $.parseJSON(result);
                                    var err_code = obres.err_code;

                                    if (err_code !== "00") {
                                        alert(obres.msg);
                                    }
                                    else
                                    {
                                        alert(obres.msg);
                                        $("#prelogin").submit();
                                    }
                                },
                                error: function()
                                {
                                    alert("Login Gagal, silahkan ulangi sekali lagi");
                                }
                            });
                        }
                        else
                        {
                            alert("Masukkan alamat Email Anda dengan benar.");
                        }
                    }
                });
            });
        </script>
    </body>
</html>
